#include <string.h>

#include "kru.h"
#include "_kru.h"

/*
	A kinda strdup for internal use
 */
char* dupstring(const char *string)
{
	char *result;

	if(NULL == string)
		return NULL;
	result = kru_malloc(strlen(string) + 1);
	strcpy(result, string);
	return result;
}
